import React, { Component, ReactChild } from 'react'
import { List } from 'antd';

interface Cloumn {
  name: string;
  dataIndex: string | number;
  render?: Function;
}

interface P {
  data: Array<any>;
  cloumn: Array<Cloumn>
}

class ListTable extends Component<P> {
  render() {

    const { data, cloumn } = this.props;

    

    return (
      <List
        size="small"
        bordered
        dataSource={data}
        renderItem={item => <List.Item>{item}</List.Item>}
      />
    )
  }
}

export default ListTable;